<?php

$CLFetchers->fetchNotaSrcDetail($Db,
                                $_POST["srcWhs"],
                                $_POST["notaSrcEnt"],
                                $SourceDb,
                                $nDetail,
                                $lstDetail);

for($iRow = 0; $iRow < $nDetail ; $iRow++){

  if($_SESSION["modify_mode"] == "Y"){

    /* Init Nothing */
  }else{

    $_POST["modelEnt"][$iRow]  = $lstDetail["MODEL"][$iRow];
    $_POST["qtyEnt"][$iRow]    = $lstDetail["QTY"][$iRow];
    $_POST["headEnt"][$iRow]   = $lstDetail["HEAD"][$iRow];
    $_POST["lengthEnt"][$iRow] = $lstDetail["LENGTH"][$iRow];
    $_POST["serNumEnt"][$iRow] = $lstDetail["SER_NUM"][$iRow];
  }

  $CFetchers->fetchModelId($Db,
                           $_POST["modelEnt"][$iRow],
                           $SourceDb->fetchValue("srcDbModel"),
                           $modelId);

  $CFetchers->fetchIsSerNumber($Db,
                               $_POST["modelEnt"][$iRow],
                               $modelId,
                               $SourceDb->fetchValue("srcDbModel"),
                               $isSerNumber);

  $_POST["isSNed"][$iRow] = $isSerNumber;
}

?>